package com.glela.serial.model.response;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.glela.goods.model.vo.goods.GoodsSimpleVo;

public class ResponseTalentSerial {

	private int serialId;// 达人期ID
	private String title = "";// 标题
	private String coverImgpath = "";// 封面图
	private int seeCount;// 浏览数
	private int goodsNum; // 商品数量
	private List<GoodsSimpleVo> goodsList; // 本期发布的商品
	private Long talentId;// 达人ID、讲师ID
	private String personDescription = "";// 达人个人简介
	private String talentHeadPhoto = "";// 达人头像
	private int isEnjoy;// 是否关注了这个达人,1是关注，0未关注
	private String talentNickName = "";// 达人昵称
	private String backgroundImage = "";// 达人主页背景图
	private int roleId;

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public void setTalentId(Long talentId) {
		this.talentId = talentId;
	}

	public String getBackgroundImage() {
		return backgroundImage;
	}

	public void setBackgroundImage(String backgroundImage) {
		if (StringUtils.isEmpty(backgroundImage)) {
			this.backgroundImage = "";
		} else {
			this.backgroundImage = backgroundImage;
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		if (StringUtils.isEmpty(title)) {
			this.title = "";
		} else {
			this.title = title;
		}
	}

	public String getCoverImgpath() {
		return coverImgpath;
	}

	public void setCoverImgpath(String coverImgpath) {
		if (StringUtils.isEmpty(coverImgpath)) {
			this.coverImgpath = "";
		} else {
			this.coverImgpath = coverImgpath;
		}
	}

	public int getSeeCount() {
		return seeCount;
	}

	public void setSeeCount(int seeCount) {
		this.seeCount = seeCount;
	}

	public int getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(int goodsNum) {
		this.goodsNum = goodsNum;
	}

	public List<GoodsSimpleVo> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<GoodsSimpleVo> goodsList) {
		if (goodsList == null || goodsList.size() == 0) {
			this.goodsList = new ArrayList<GoodsSimpleVo>();
		} else {
			this.goodsList = goodsList;
		}
	}

	public long getTalentId() {
		return talentId;
	}

	public void setTalentId(long talentId) {
		this.talentId = talentId;
	}

	public String getPersonDescription() {
		return personDescription;
	}

	public void setPersonDescription(String personDescription) {
		if (StringUtils.isEmpty(personDescription)) {
			this.personDescription = "";
		} else {
			this.personDescription = personDescription;
		}

	}

	public String getTalentHeadPhoto() {
		return talentHeadPhoto;
	}

	public void setTalentHeadPhoto(String talentHeadPhoto) {
		if (StringUtils.isEmpty(talentHeadPhoto)) {
			this.talentHeadPhoto = "";
		} else {
			this.talentHeadPhoto = talentHeadPhoto;
		}

	}

	public int getIsEnjoy() {
		return isEnjoy;
	}

	public void setIsEnjoy(int isEnjoy) {
		this.isEnjoy = isEnjoy;
	}

	public String getTalentNickName() {
		return talentNickName;
	}

	public void setTalentNickName(String talentNickName) {
		if (StringUtils.isEmpty(talentNickName)) {
			this.talentNickName = "";
		} else {
			this.talentNickName = talentNickName;
		}
	}

	public int getSerialId() {
		return serialId;
	}

	public void setSerialId(int serialId) {
		this.serialId = serialId;
	}

}
